package com.tj.collection.db.admin.dao;

import com.fqgj.common.api.Page;
import com.tj.collection.db.admin.entity.AuthMenuEntity;
import com.tj.collection.db.admin.entity.AuthMenuEntityConditions;
import com.tj.collection.common.old.BaseDAO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/3/11
 * Time: 上午10:07
 */
public interface AuthMenuDAO extends BaseDAO<AuthMenuEntity, Long, AuthMenuEntityConditions> {

    /**
     * @param parentId
     * @param page
     * @return
     */
    List<AuthMenuEntity> getListByParentId(Long parentId, Page page);


    /**
     * @param menuIds
     * @return
     */
    List<AuthMenuEntity> getListByIds(List<Long> menuIds);

    int deleteByMenuId(long id);

    /**
     * @return
     */
    List<AuthMenuEntity> getAllList();
}
